const path = require('path');
module.exports = {
  mode: 'development',
  entry: "./src/index.js",
  output: {
    //虚拟打包路径，就是说文件夹不会真正的生成，而是在8080端口虚拟生成
    publicPath: '/xuni', // string
    filename: 'bundle.js'
  },
  devServer: {
    port: 8089,
    contentBase: 'www'
  },
  module: {
    rules: [
      { test: /\.css$/, use: 'css-loader' }
    ]
  }
}